import {defineStore} from 'pinia'
import {baseName} from '@/utils/constant'

export default defineStore({
  id: `${baseName}-theme`,
  state: () => ({
    primaryColor: '#346fff'
  }),
  actions: {
    updateTheme(theme) {
      this.primaryColor = theme
    }
  },
  getters: {
    primary: state => state.primaryColor
  }
})